package com.ask.langchain4j_springboot.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;

@AiService(
        chatModel = "qwenChatModel",
        streamingChatModel = "qwenStreamingChatModel"
        //chatMemoryProvider = "chatMemoryProvider"
)
public interface MyAiService {
    @SystemMessage(fromResource = "system.txt")
    String chat(@MemoryId String memoryId, @UserMessage String message);
}
